package com.afkx.oop.zoon;

/**
 * @ClassName Zoon
 * @Description TODO
 * @Author Kx
 * @Date 2025/3/3 9:54
 * @Version 1.0
 */
public class Zoon {
    public void eat(){
        System.out.println("吃东西");
    }

    public void sleep(){
        System.out.println("睡懒觉");
    }
}

class Rabbit extends Zoon{
    @Override
    public void eat() {
        System.out.println("兔子吃草");
    }
}

class Lion extends Zoon{
    @Override
    public void eat() {
        System.out.println("狮子吃肉");
    }
}
